package com.yiibai.tutorial.javabasic.variable;

public class SuperClassA {
		public void foo() {
			System.out.println("SuperClassA");
		}
		
		//继承SupperClassA类
		class SubClassB extends SuperClassA{
			public void bar() {
				System.out.println("SubClassB");
			}
		}
		
		public class Test{
			   public static void main(String args[]){
			        SubClassB a = new SubClassB();
			        a.foo();
			        a.bar();
			    }
		}
}
